<?php

namespace app\controller\api;

use app\BaseController;
use app\model\Shops;
use think\facade\Session;
use think\Request;


class IndexController extends BaseController
{
    public function index()
    {
       return $this->success('api OK!');
    }

    public function setSession($name = 'test')
    {
        Session::set($name,'ldy');
        dump(11);
    }


    public function getSession(Request$request,$name)
    {
       $r = \session($name);
       dd($r);
        //dump(Session::get($name));
    }
}
